<template>
  <div style="margin-top:75px">
    <el-button class="grad" @click="getData">请求数据</el-button>
  </div>
</template>

<script>
export default {
  methods:{
    async getData(){
      const res = await this.$axios('getIndexNews.php','get').catch(err=>{console.warn(err)})
      console.log(res);
    }
  }
}
</script>

<style scpoed>
</style>